<?php
 

class b2c_ctl_admin_goods_unit extends desktop_controller{

    var $workground = 'b2c.workground.goods';
     public function index() 
    {
        $this->pagedata['unit_arr'] = app::get('b2c')->getConf('goods.unit'); 
        $this->page('admin/goods/unit.html');
    }//End Function

    public function save() 
    {
        $this->begin();
        $_unit=$_POST['unit'];
        $_unit=array_filter($_unit);
        $_unit=array_unique($_unit);
        app::get('b2c')->setConf('goods.unit', $_unit);
        $this->end(true, '保存成功');
    }
}
